home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr26
/
massdesc.zip
/
DIZ.BTM
next >
Wrap
Text File
|
1993-06-06
|
2KB
|
66 lines
CLS
TEXT
-----------------Mass Describe-----------------
by Donald Clancy
This BTM file describes all the ZIP files in the current directory
by extracting the FILE_ID.DIZ file from the archive and using the first
line in the DIZ file for the description.
NOTE: Some editing of the descriptions will be required. The authors
of the DIZ files are rarely consistent.
ENDTEXT
@ECHO OFF
IF EXIST TEMP.TMP DEL TEMP.TMP /Q
*DIR *.ZIP /B > TEMP.TMP
SET LEN=%@LINES[TEMP.TMP]
ECHO Currently describing %@EVAL[%LEN+1] ZIP files.
SET I=0
SET DESC=0
SET NON=0
SET ALR=0
SCREEN 16 1
:LOOP
SET FILE=%@LINE[TEMP.TMP,%I]
SCRPUT 14 7 RED ON BLACK %@EVAL[%I+1]
SCRPUT 14 10 YELLOW ON BLACK ■
SCRPUT 14 10 YELLOW ON BLACK %FILE
IFF "%@DESCRIPT[%FILE]"="" THEN
IF EXIST FILE_ID.DIZ DEL FILE_ID.DIZ /Q
PKUNZIP %FILE FILE_ID.DIZ > NUL
IFF EXIST FILE_ID.DIZ THEN
DESCRIBE %FILE "%@LINE[FILE_ID.DIZ,0]"
SCRPUT 14 25 BLUE ON BLACK ■
SCRPUT 14 25 BLUE ON BLACK %@LINE[FILE_ID.DIZ,0]
SET DESC=%@EVAL[%DESC+1]
ELSE
DESCRIBE %FILE "n/a"
SCRPUT 14 25 BRIGHT RED ON BLACK "n/a "
SET NON=%@EVAL[%NON+1]
ENDIFF
ELSE
SET ALR=%@EVAL[%ALR+1]
SCRPUT 14 25 BLUE ON BLACK ■
SCRPUT 14 25 BRIGHT YELLOW ON BLACK %@DESCRIPT[%FILE]
ENDIFF
IF %I=%LEN GOTO OUT
SET I=%@EVAL[%I + 1]
GOTO LOOP
:OUT
SCREEN 16 1
ECHO Description process complete.
ECHO %@EVAL[%LEN+1] file(s)
ECHO %DESC file(s) were described.
ECHO %NON file(s) did not contain a FILE_ID.DIZ file.
ECHO %ALR file(s) already had a description.
UNSET I
UNSET FILE
UNSET LEN
UNSET NON
UNSET ALR
IF EXIST TEMP.TMP DEL TEMP.TMP /Q
IF EXIST FILE_ID.DIZ DEL FILE_ID.DIZ /Q